	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="38" id="niftyPlayer1" align="">
<param name=movie value="niftyplayer.swf">
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src="<?php echo $this->baseUrl('js/')?>niftyplayer.swf" quality=high bgcolor=#FFFFFF width="100%" height="38" name="niftyPlayer1" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
	    
<?php
foreach ($this->audio as $audio) :
    ?>
   
    <a href="javascript:niftyplayer('niftyPlayer1').loadAndPlay('<?php
        echo $this->baseUrl(
        'media_data' . DIRECTORY_SEPARATOR . $this->user_login . DIRECTORY_SEPARATOR .
         audio . DIRECTORY_SEPARATOR . $audio)?>')"><?php echo str_replace(".mp3", "", $audio);?></a>
         
             <?php if($this->user_login==Zend_Auth::getInstance()->getIdentity()->login):?>
                  <a
        		href="<?php
        	    echo $this->url(array('controller' => 'media', 'action' => 'audioremove','request'=>$audio),"default")?>">
        	    <?php
        	    echo $this->translate("Delete audio");
        	    ?>
        	    </a>
             <?php endif;?>
         
         <br/>
<?php endforeach;?>



<?php
if($this->user_login==Zend_Auth::getInstance()->getIdentity()->login){
	    
    echo $this->form;
    
}

?>
